package org.wolfengi.monitor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.wolfengi.monitor.entity.FShipAgeCount;
import org.wolfengi.monitor.mapper.FShipAgeCountMapper;
import org.wolfengi.monitor.service.FShipAgeCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author wolfengi
 * @since 2020-05-21
 */
@Service
public class FShipAgeCountServiceImpl extends ServiceImpl<FShipAgeCountMapper, FShipAgeCount> implements FShipAgeCountService {

    @Autowired
    private FShipAgeCountMapper fShipAgeCountMapper;

    @Override
    public List<Map> selectShipAgeCountByRange(Integer begAge, Integer endAge) {
        return fShipAgeCountMapper.selectShipAgeCountByRange(begAge, endAge);
    }

    @Override
    public List<Map> selectShipAgeCount() {
        return fShipAgeCountMapper.selectShipAgeCount();
    }
}
